﻿using Dapper.FluentMap.Mapping;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Real.Entidad
{
    public class Marca
    {
        public int id { get; set; }
        public string denominacion { get; set; }
        public int proveedor_id { get; set; }
        public Proveedor proveedor { get; set; }
    }

    public class MarcaMap : EntityMap<Marca>
    {
        public MarcaMap()
        {
            Map(x => x.id).ToColumn("marid", caseSensitive: false);
            Map(x => x.denominacion).ToColumn("mardenominacion", caseSensitive: false);
            Map(x => x.proveedor_id).ToColumn("proid", caseSensitive: false);
        }
    }
}
